﻿<script type="text/mustache-template" id="ProductDetailTemplate">
    <div id="ProductDetail" class=''>
        {{>header}}
        {{>sliding}}
        <div class="scroll-wrapper two-height" id="ProductDetailWrapper">
            <div class="scroll-inner">
                <div id="productDetailPanel">
                    <div class="p_intro" id="p_intro">
                    </div>
                    <div class="p_detail p_product_detail_panel" id="p_detail">
                    </div>
                    <div class="p_comment p_product_detail_panel" id="p_comment">
                        
                    </div>
                    <div class="p_ordercomment p_product_detail_panel" id="p_ordercomment">

                    </div>
                </div>
                {{>footer}}
            </div>
        </div>
    </div>
</script>
<script type="text/mustache-template" id="IntroContentTemplate">
    <div class="p_name">{{Name}}</div>
        <div class="pictureList">
            {{>pictureSlide}}
        </div>
        <div class="p_summary">
            {{>productSummary}}          
        </div>

        <div class="p_intro_info">
        <ul class="ul-detail">
            <li>
                <img src="/Content/Images/product/detail_icon.png" width="26" height="26">【商品详情】
                <span class="menu-botton-arrow"></span>
            </li>
            <li>{{{Detail}}}</li>            
        </ul>

        <ul class="ul-comment">
            <li>
                <img src="/Content/Images/product/common_icon.png" width="26" height="30">【商品评论】
                <span class="red" id="sp_orderComment"></span>{{CommentCount}}条
                <span class="menu-botton-arrow"></span>
                <!--<div class="gray">
                 好评<span class="red" id="scoreCount1"></span>
                 中评<span class="red" id="scoreCount2"></span>
                 差评<span class="red" id="scoreCount3"></span>
                </div>-->
            </li>
            <!--<li>
                {{>commentSample}}
            </li>-->        
        </ul>

        <ul class="ul-orderComment">
             <li>
                <img src="/Content/Images/product/discuss_icon.png" width="26" height="30">【商品晒单】
                <span class="red" id="sp_consultation"></span>{{BaskOrderLogCount}}条
                <span class="menu-botton-arrow"></span>
            </li>
            <!--<li>
                <div class='u-topic'></div>
                <div class='u-info'>
                    
                </div>
            </li>  -->            
        </ul>

        <ul class="ul-consultations">
             <li>
                <img src="/Content/Images/product/order_icon.png" width="26" height="30">【购买咨询】
                <span class="red" id="sp_consultation"></span>{{ReferCount}}条
                <span class="menu-botton-arrow"></span>
            </li>          
        </ul>
    </div>
</script>
<script type="text/mustache-template" id="CommentContentTemplate">
    <ul>
    {{#commentList}}
        <li>
       {{>commentSample}}
       </li>
    {{/commentList}}
    </ul>
    <div class='foot-paging'></div>
</script>

<script type="text/mustache-template" id="EmptyCommentContentTemplate">
    <h3>暂无评论</h3>
</script>

<script type="text/mustache-template" id="OrderCommentContentTemplate">
    <ul>
        {{#orderComments}}
            <li orderid='{{Guid}}'>
                <p class="topic">{{Content}}</p>
                <span class="gray">{{CreateTime}}</span>
                <span class="gray fr" style='margin: 0 20px 0 0;'></span>
                <span class="menu-botton-arrow"></span>
            </li>
        {{/orderComments}}
    </ul>
    <div class='foot-paging'></div>
</script>

<script type="text/mustache-template" id="EmptyOrderCommentContentTemplate">
    <h3>暂无晒单</h3>
</script>

<script type="text/mustache-template" id="OrderCommentDetailTemplate">
    {{>detail}}
    <div class="pictureList">
       {{>pictureSlide}}
    </div>
    {{>commentList}}
</script>

<script type="text/mustache-template" id="OrderCommentContentDetailTemplate">
    {{#orderDetail}}
        <div class="common-border"><p>{{Title}}</p></div>
        <span class="gray">发表用户：{{CreateUser}}</span><br>
        <span class="gray">发表时间：{{CreateTime}}</span>
    {{/orderDetail}}
</script>
<script type="text/mustache-template" id="OrderCommentListDetailTemplate">
    <div class="u-discuss">
    {{#comments}}
        <div class="common-border">
            回复<span class="gray fr">{{CreateTime}}</span>
            <p class="discuss-cont"><span></span>{{Content}}</p>
        </div>
    {{/comments}}
    </div>
</script>

<script type="text/mustache-template" id="DetailContentTemplate">
    <p class='p-name'>
    
    </p>
    <ul>
       <li>
            <img src="/Content/Images/product/intro_icon.png" width="26" height="26">商品介绍
       </li>
       <li>{{{Detail}}}</li> 
    </ul>
    <ul>
       <li>
            <img src="/Content/Images/product/set_icon.png" width="26" height="26">规格参数
       </li> 
       <li id='Specifications'>
          
       </li> 
    </ul>
    <ul>
       <li>
            <img src="/Content/Images/product/list_icon.png" width="26" height="26">包装清单
       </li> 
       <li></li> 
    </ul>
    <ul>
       <li>
            <img src="/Content/Images/product/intro_icon.png" width="26" height="26">售后服务
       </li> 
       <li></li> 
    </ul>
</script>

<script type="text/mustache-template" id="SlideTitleTemplate">
    <div class="sliding four-sliding">
        <ul>
            <li class="selected" detail='tab_intro'><span>简介</span></li>
            <li detail='tab_detail'><span>详情</span></li>
            <li detail='tab_comment'><span>评论</span></li>
            <li detail='tab_orderComment'><span>晒单</span></li>
        </ul>
    </div>
</script>
<script type="text/mustache-template" id="PictureSlideTemplate">
    
    <div class="flexslider">
      <ul class="slides">
        <!--<li>
          <img src="/Content/Images/product/demo.jpg" />
        </li>
        <li>
          <img src="/Content/Images/product/demo.jpg" />
        </li>
        <li>
          <img src="/Content/Images/product/demo.jpg" />
        </li>
        <li>
          <img src="/Content/Images/product/demo.jpg" />
        </li>-->
        {{#hasImages}}
        {{#Images}}
        <li>
          <img src="{{src}}" onerror='this.src="/Content/Images/product/demo.jpg"'/>
        </li>
        {{/Images}}
        {{/hasImages}}
        {{^hasImages}}
        <li>
          <img src="/images/noImage.gif" />
        </li>
        {{/hasImages}}
      </ul>
    </div>
    
</script>
<script type="text/mustache-template" id="SummaryTemplate">
    <!--<dl id='color_choose'>
        <dt>选择颜色：</dt>
        <dd id="color">
            <a title='米白色' class='currentSelect'>米白色</a>
            <a title='红色'>红色</a>
        </dd>
    </dl>
    
    <dl id="size_choose">
        <dt>选择尺码：</dt>
        <dd id="size">
            <a title='S'>S</a>
            <a title='M' class='currentSelect'>M</a>
            <a title='L'>L</a>
            <a title='XL'>XL</a>
            <a title='XXL'>XXL</a>
        </dd>
    </dl>-->
    
    <div class='li-price'>
        市场价：<font>￥{{MarketPrice}}</font>
    </div>
    <p>ShopNum1价：<span class='red'>￥{{ShopPrice}}</span></p>
    

    <p class="storeInfo">
    库存量：{{RepertoryCount}}{{UnitName}}
    </p>
    <p><span style='padding-right:10px' class='gray'>商品重量：{{Weight}}克</span> <span class='gray'>商品品牌：{{BrandName}} </span> <span style='padding-left:10px' class='gray'>商品货号: {{RepertoryNumber}}</span></p>

    <!--<p><span class='gray' style='padding-right:10px'>被购买次数：{{BuyCount}}</span><span class='gray'>被点击次数：{{ClickCount}}</span></p>-->

    <a class="arrow-prdetail">商品详情<span></span></a>
    <a class="ui-button" id="add_cart">加入购物车</a>
    <a class="ui-button ui-button-yellow" id="addFavorite">加入收藏</a>
</script>
<script type="text/mustache-template" id="SampleCommentTemplate">
    <div class='u-score'>评分：<span class="star sa{{PresentScore}}"></span></div>
    <div class='u-info'></div>
    <div class='u-good'>优点：</div>
    <div class='u-bad'>缺点：</div>
    <div class='u-summ'>心得：</div>
</script>

<script type="text/mustache-template" id="DetailCommentTemplate">
    <div class='u-topic'>
        <span></span>
        {{Title}}
    </div>
    <div class='u-score'>评分：<span class="star sa{{Rank}}"></span></div>
    <div class='u-info'>{{MemLoginID}}<span class="fr">{{SendTime}}</span></div>
    <div class='u-good'>优点：</div>
    <div class='u-bad'>缺点：</div>
    <div class='u-summ'>心得：</div>
</script>

<script type="text/mustache-template" id="SpecificationsTemplate">
    <table cellpadding="0" cellspacing="1" width="100%" border="0">
        {{#props}}
            <tr>
                <td>{{PropName}}</td>
                <td>{{PropValueName}}</td>
            </tr>
        {{/props}}
    </table>
</script>
